home *** CD-ROM | disk | FTP | other *** search
Text File | 2003-07-17 | 31.0 KB | 1,056 lines |
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Original Authors: rg, gf, mm
- //
- // Description:
- // This contains procedures necessary for
- // the Hotkey/NameCommand editor.
- //
-
- proc buildNameCommandsForMenu(
- string $thisMenu, string $prefix,
- string $menuItemsWhoseNameCommandsMustBeCreatedImmediately[],
- string $commandStringsOfTheMenuItems[],
- string $namesToUseForTheNameCommands[]
- ) {
- int $numItems = `menu -q -ni $thisMenu`;
- if ($numItems == 0) {
- // Try to build the menu
- string $pmCmd = `menu -q -pmc $thisMenu`;
- catch(eval($pmCmd));
- $numItems = `menu -q -ni $thisMenu`;
- }
-
- if ($numItems > 0) {
- string $items[] = `menu -q -ia $thisMenu`;
- string $previousItem = "";
- string $itemLabel;
- string $annotation;
- int $j;
-
- setParent -m $thisMenu;
- for ($i=0; $i < $numItems; ++$i) {
-
-
- // Handle the following strange bug: sometimes
- // the array of menu items passed back contains
- // "nonexistent" items. Try, for example, creating
- // a sphere and selecting it. This will cause a
- // "transform" submenu to appear in the "Keys"
- // menu. When the hotkey editor is opened,
- // and the menubar is traversed, the array of
- // items returned for the "Keys" menu contains a
- // "nonexistent" item right where the "transform"
- // submenu should be.
- //
- if (!`menuItem -exists $items[$i]`) {
- continue;
- }
-
- // Handle dividers
- //
- if (`menuItem -q -d $items[$i]`) {
- $previousItem = "";
- continue;
- }
-
- // Handle option boxes
- //
- if (`menuItem -q -iob $items[$i]`) {
- if ($previousItem != "")
- $itemLabel = (`menuItem -q -l $previousItem` + " (Option Box)");
- else
- $itemLabel = (`menuItem -q -l $items[$i]` + " (Option Box)");
- }
- else {
- $itemLabel = `menuItem -q -l $items[$i]`;
-
-
- // The Edit->Repeat menuItem has a label that dynamically updates.
- // Fortunately, this label always starts with the string "Repeat".
- // So we cath this menuItem and substitute its label for one that
- // is more appropriate within the hotkey editor.
- //
- // A note about regular expressions: "^abc..." will match with "abc..."
- // when "abc..." occurs at the beginning of the string.
- // See "man ed" for more info on regular expression syntax.
- //
- if (match("^Repeat",$itemLabel) != "" && $prefix == "Edit->") {
- $itemLabel = "Repeat";
- }
- }
- $previousItem = "";
-
- if (`menuItem -q -sm $items[$i]`) {
-
- // Recursive step: do the items in this submenu
- //
- buildNameCommandsForMenu($items[$i], ($prefix+`menuItem -q -l $items[$i]`+"->"),
- $menuItemsWhoseNameCommandsMustBeCreatedImmediately,
- $commandStringsOfTheMenuItems,
- $namesToUseForTheNameCommands
- );
- }
- else {
- //if (`menuItem -q -isCheckBox $items[$i]`) {
- // ...
- //} else if (`menuItem -q -isRadioButton $items[$i]`) {
- // ...
- //}
-
- // Check if the named command has a predefined name, and if so use it.
- //
- $annotation = ($prefix + $itemLabel);
- for ($j = size($menuItemsWhoseNameCommandsMustBeCreatedImmediately) - 1; $j >= 0; --$j)
- if ($menuItemsWhoseNameCommandsMustBeCreatedImmediately[$j] == $annotation)
- break;
- if ($j >= 0) {
- // The loop broke - hence, a match was found.
- // Use the predefined name so that the default hotkey mappings will still work.
- //
- nameCommand -annotation $annotation -command $commandStringsOfTheMenuItems[$j] $namesToUseForTheNameCommands[$j];
-
- // The following check is very important. The command strings attached to menu items
- // (as created in the various menu-creation scripts) should be identical to the command
- // strings attached to corresponding nameCommands (as defined in *this* script).
- //
- if (`menuItem -q -c $items[$i]` != $commandStringsOfTheMenuItems[$j]) {
- warning "command string mismatch in namedCommandSetup.mel";
- print ( " The command string for the menu item \"" + $annotation + "\"\n"
- + " does not match the command string for its corresponding hotkey.\n"
- + " Command string for menu item: " + `menuItem -q -c $items[$i]` + "\n"
- + " Command string for hotkey: " + $commandStringsOfTheMenuItems[$j] + "\n"
- );
- }
- }
- else {
- // Let the system generate any old name for us.
- //
- nameCommand -annotation $annotation -command `menuItem -q -c $items[$i]`;
- }
- $previousItem = $items[$i];
- }
- }
- setParent -m ..;
- }
- }
-
- // BEGIN: traverse the main menubar, generating namedCommands corresponding to each menu item.
- //
- {
- // If a menuItem has a default hotkey attached to it, we cannot delay
- // the construction of the menuItem's corresponding nameCommand.
- // The following arrays tell us how to construct them.
- //
- string $menuItemsWhoseNameCommandsMustBeCreatedImmediately[] = {
-
- // File menu
- //
- "File->New Scene",
- "File->Open Scene...",
- "File->Save Scene",
- "File->Save Scene As...",
- "File->Import...",
- "File->Quit",
-
- // Edit menu
- //
- "Edit->Undo",
- "Edit->Redo",
- "Edit->Repeat", // must be handled as special case
- "Edit->Select All",
- "Edit->Duplicate",
- "Edit->Group",
- "Edit->Parent",
-
- // Display menu
- //
- "Display->Hide->Hide Selection",
- "Display->Hide->Hide Unselected Objects",
- "Display->Show->Show Last Hidden",
-
- // Window menu
- //
- "Window->Frame All in All Views",
- "Window->Frame Selection in All Views",
- "Window->Attribute Editor...",
-
- // Keys menu
- //
- "Animate->Set Key"
- };
- string $commandStringsOfTheMenuItems[] = { // If these do not match the actual command strings in the menus, warnings will be spit out.
-
- // File menu
- //
- "NewScene",
- "OpenScene",
- "SaveScene",
- "SaveSceneAs",
- "Import",
- "Quit",
-
- // Edit menu
- //
- "Undo",
- "Redo",
- "RepeatLast",
- "SelectAll",
- "Duplicate",
- "Group",
- "Parent",
-
- // Display menu
- //
- "HideSelectedObjects",
- "HideUnselectedObjects",
- "ShowLastHidden",
-
- // Window menu
- //
- "FrameSelectedInAllViews",
- "FrameAllInAllViews",
- "AttributeEditor",
-
- // Keys menu
- //
- "SetKey"
- };
- string $namesToUseForTheNameCommands[] = { // These are used in the hotkeySetup.mel file
-
- // File menu
- //
- "NameComNew_File",
- "NameComOpen_File",
- "NameComSave_File",
- "NameComSave_File_As",
- "NameComImport_File",
- "NameComQuit",
-
- // Edit menu
- //
- "NameComUndo",
- "NameComRedo",
- "NameComRepeat_Last_Menu_Action",
- "NameComSelect_All",
- "NameComDuplicate_Selected",
- "NameComGroup_Selected",
- "NameComParent_Selected",
-
- // Display menu
- //
- "NameComHide_Selected_Objects",
- "NameComHide_Unselected_Objects",
- "NameComShow_Last_Hidden",
-
- // Window menu
- //
- "NameComFit_Select_in_All_Panels",
- "NameComFit_All_in_All_Panels",
- "NameComAttribute_Editor",
-
- // Keys menu
- //
- "NameComSet_Keyframe"
- };
-
-
- // Traversing the menus in the main menu bar requires that all
- // menus be forced to build themselves. Since this would
- // greatly impact Maya's start-up time, we don't do it
- // at start-up time. Instead, we do it when the hotkey editor
- // is opened (see hotkeyEditor.mel).
- //
- if (`optionVar -exists theExistenceOfThisOptionVarWillCauseTheMenuBarToBeTraversedWhenTheNamedCommandsAreBeingCreated`) {
- global string $gMainWindow;
- setParent $gMainWindow;
- string $menuArray[] = `window -q -ma $gMainWindow`;
- string $label;
- waitCursor -state on;
- for ($menu in $menuArray) {
- $label = `menu -q -label $menu`;
-
- // We do *not* want to traverse hotBox menus (or the "Tests" menu).
- // If the menu label does not contain the word "hotbox",
- // then it's probably safe to traverse the menu.
- //
- if (match("[Hh]ot[Bb]ox",$label) == "" && $label != "Tests" && $label != "Recent Commands") {
- assignCommand -e -addDivider ($label + " Menu");
- buildNameCommandsForMenu($menu, ($label + "->"),
- $menuItemsWhoseNameCommandsMustBeCreatedImmediately,
- $commandStringsOfTheMenuItems,
- $namesToUseForTheNameCommands
- );
- }
- }
- waitCursor -state off;
-
- // IMPORTANT
- // IMPORTANT
- // IMPORTANT: Note that once the hotkey settings have been changed by the user and saved,
- // this file will no longer be sourced (unless the user selects "restore defaults"),
- // *and* the below optionVar will be saved with a value of false (zero). It is
- // important that this value in fact be saved, so that it will persist from session
- // to session. DO NOT REPLACE THE BELOW OPTIONVAR WITH A GLOBAL VARIABLE.
- //
- optionVar -iv mainMenuBarNeedsToBeTraversedWhenHotkeyEditorIsOpened 0;
- }
- else {
- optionVar -iv mainMenuBarNeedsToBeTraversedWhenHotkeyEditorIsOpened 1;
-
- // Create the menu-item nameCommands that are necessary
- // for the default hotkey mappings to work.
-
- int $j, $max;
-
- $max = size($menuItemsWhoseNameCommandsMustBeCreatedImmediately) - 1;
-
- for ($j = 0; $j <= $max; ++$j)
- nameCommand
- -annotation $menuItemsWhoseNameCommandsMustBeCreatedImmediately[$j]
- -command $commandStringsOfTheMenuItems[$j]
- $namesToUseForTheNameCommands[$j];
- }
- }
- //
- // END: traverse the main menubar, generating namedCommands corresponding to each menu item.
-
-
-
-
- // For Info on how to edit this part of the file, see hotkeySetup.mel
- //
- // NOTE:
- // The string at the end of the nameCommand line is the internal name.
- // This is used by the hotkey command. However, it doesn't have to
- // be specified. It is automatically generated by the software if not
- // specified.
- //
- assignCommand -e -addDivider "Modeling Panel Menu Items";
-
- nameCommand -annotation "Wireframe Display"
- -command "DisplayWireframe"
- "NameComWireframe_Display" ;
-
- nameCommand -annotation "Shaded Display"
- -command "DisplayShaded"
- "NameComShaded_Display" ;
-
- nameCommand -annotation "Shaded and Textured Display"
- -command "DisplayShadedAndTextured"
- "NameComShaded_and_Textured_Display" ;
-
- // Modeling pane: View/Smooth shade all
- nameCommand -annotation "Turn on Light Display"
- -command "DisplayLight"
- "NameComTurn_on_Light_Display" ;
-
- // Modeling: Lighting
-
- nameCommand -annotation "Shading Marking Menu (Press)"
- -command "DisplayShadingMarkingMenu"
- "Name_ShadingMMenu";
- // Modeling:Shading
- nameCommand -annotation "Shading Marking Menu (Release)"
- -command "DisplayShadingMarkingMenuPopDown"
- "Name_ShadingMMenu_release";
- // Modeling:Shading
-
- nameCommand -annotation "Fit Selected in Active Panel"
- -command "FrameSelected" ;
- // Modeling Panes:View/Fit Selected
-
- nameCommand -annotation "Fit All in Active Panel, with Marking Menu (Press)"
- -command ("SelectAllMarkingMenu")
- NameComFit_All_in_Active_Panel_MMenu;
- // Modeling:View/Frame All
- nameCommand -annotation "Fit All in Active Panel, with Marking Menu (Release)"
- -command ("SelectAllMarkingMenuPopDown")
- NameComFit_All_in_Active_Panel_MMenu_release;
- // Modeling:View/Frame All
-
- // There is suspicion that this command already exists in the model panel menu bar->view menu,
- // probably one of the items "Look at Selection", "Frame Selection", or "Frame All".
- // If this is the case, it should be given an annotation that reflects this (like "View->something",
- // where "something" is the label of the menu item it actually corresponds to).
- //
- nameCommand -annotation "Fit Selected in All Panels"
- -command "FrameAll" "NameComFit_Selected_in_All_Panels" ;
-
- nameCommand -annotation "Isolate select"
- -command "SelectIsolate"
- "NameComIsolateSelect" ;
-
- //
- // Snapping.
- //
- // ----------------------------------------------------------------------
- assignCommand -e -addDivider "Status Line";
-
- nameCommand
- -annotation "Activate Snap to Curve (Press)"
- -command ("SnapToCurve")
- NameComSnap_to_Curve_modifierON;
-
- nameCommand
- -annotation "Deactivate Snap to Curve (Release)"
- -command ("SnapToCurve")
- NameComSnap_to_Curve_modifierOFF;
-
- nameCommand
- -annotation "Activate Snap to Grid (Press)"
- -command ("SnapToGrid")
- NameComSnap_to_Grid_modifierON;
-
- nameCommand
- -annotation "Deactivate Snap to Grid (Release)"
- -command ("SnapToGrid")
- NameComSnap_to_Grid_modifierOFF;
-
- nameCommand
- -annotation "Activate Snap to Point (Press)"
- -command ("SnapToPoint")
- NameComSnap_to_Point_modifierON;
-
- nameCommand
- -annotation "Deactivate Snap to Point (Release)"
- -command ("SnapToPoint")
- NameComSnap_to_Point_modifierOFF;
-
- //
- // Selection.
- //
- // ----------------------------------------------------------------------
- nameCommand
- -annotation "Toggle Object/Component Editing"
- -command ("SelectToggleMode")
- NameComToggle_ObjectComponent_Editing;
-
- nameCommand
- -annotation "Select Polygon & Subd Surface Vertices"
- -command ("SelectVertexMask")
- NameComSet_Vertex_Component_Mask;
-
- nameCommand
- -annotation "Select Polygon & Subd Surface Edges"
- -command ("SelectEdgeMask")
- NameComSet_Edge_Component_Mask;
-
- nameCommand
- -annotation "Select Polygon & Subd Surface Faces"
- -command ("SelectFacetMask")
- NameComSet_Facet_Component_Mask;
-
- nameCommand
- -annotation "Select Polygon & Subd Surface UVs"
- -command ("SelectUVMask")
- NameComSet_UVs_Component_Mask;
-
- nameCommand
- -annotation "Select Polygon VertexFaces"
- -command ("SelectVertexFaceMask")
- NameComSet_VertexFace_Component_Mask;
-
- nameCommand
- -annotation "Select All Input"
- -command ("SelectAllInput")
- NameComSelect_All_Input;
-
- nameCommand
- -annotation "Select All Output"
- -command ("SelectAllOutput")
- NameComSelect_All_Output;
-
- //
- // Tools.
- //
- // ----------------------------------------------------------------------
- assignCommand -e -addDivider "Tools";
-
- nameCommand
- -annotation "Enter Tool Edit Mode"
- -command "EnterEditMode"
- NameComEnter_Tool_Edit_Mode;
-
- nameCommand
- -annotation "Move/Rotate/Scale Tool: Toggle Snap Mode"
- -command ("MoveRotateScaleToolToggleSnapMode")
- NameComMoveRotateScale_Tool_ToggleSnap;
-
- nameCommand
- -annotation "Move/Rotate/Scale Tool: Toggle Snap Relative Mode"
- -command ("MoveRotateScaleToolToggleSnapRelativeMode")
- NameComMoveRotateScale_Tool_ToggleSnapRelative;
-
- nameCommand
- -annotation "Move Tool, with Marking Menu (Press)"
- -command ("TranslateToolMarkingMenu")
- NameComMove_Tool;
-
- nameCommand
- -annotation "Move Tool, with Marking Menu (Release)"
- -command ("TranslateToolMarkingMenuPopDown")
- NameComMove_Tool_revert;
-
- nameCommand
- -annotation "Rotate Tool, with Marking Menu (Press)"
- -command ("RotateToolMarkingMenu")
- NameComRotate_Tool;
-
- nameCommand
- -annotation "Rotate Tool, with Marking Menu (Release)"
- -command ("RotateToolMarkingMenuPopDown")
- NameComRotate_Tool_revert;
-
- nameCommand
- -annotation "Scale Tool, with Marking Menu (Press)"
- -command ("ScaleToolMarkingMenu")
- NameComScale_Tool;
-
- nameCommand
- -annotation "Scale Tool, with Marking Menu (Release)"
- -command ("ScaleToolMarkingMenuPopDown")
- NameComScale_Tool_revert;
-
- nameCommand
- -annotation "ShowManip Tool"
- -command ("ShowManipulators")
- NameComShowManip_Tool;
-
- nameCommand
- -annotation "Select Tool"
- -command ("SelectTool")
- NameComSelect_Tool;
-
- nameCommand
- -annotation "Lasso Tool"
- -command ("LassoTool")
- NameComLasso_Tool;
-
- nameCommand
- -annotation "NonSacred Tool"
- -command ("NonSacredTool")
- NameComNonSacred_Tool;
-
- nameCommand
- -annotation "Select Tool, with Object Marking Menu (Press)"
- -command ("SelectToolMarkingMenu")
- NameComSelectTool_ObjectMMenu;
-
- nameCommand
- -annotation "Select Tool, with Object Marking Menu (Release)"
- -command ("SelectToolMarkingMenuPopDown")
- NameComSelectTool_ObjectMMenu_release;
-
- nameCommand
- -annotation "Select Tool, with Component Marking Menu (Press)"
- -command ("SelectComponentToolMarkingMenu")
- NameComSelectTool_ComponentMMenu;
-
- nameCommand
- -annotation "Select Tool, with Component Marking Menu (Release)"
- -command ("SelectComponentToolMarkingMenuPopDown")
- NameComSelectTool_ComponentMMenu_release;
-
- nameCommand
- -annotation "Select Tool, with Polygon Marking Menu (Press)"
- -command ("SelectPolygonToolMarkingMenu")
- NameComSelectTool_PolyMMenu;
-
- nameCommand
- -annotation "Select Tool, with Polygon Marking Menu (Release)"
- -command ("SelectPolygonToolMarkingMenuPopDown")
- NameComSelectTool_PolyMMenu_release;
-
- nameCommand
- -annotation "Select Tool, with Mask Marking Menu (Press)"
- -command ("SelectMaskToolMarkingMenu")
- NameComSelectTool_MaskMMenu;
-
- nameCommand
- -annotation "Select Tool, with Mask Marking Menu (Release)"
- -command ("SelectMaskToolMarkingMenuPopDown")
- NameComSelectTool_MaskMMenu_release;
-
- // trans/rot/scale with snap
- nameCommand
- -annotation "TranslateToolWithSnapMarkingMenuNameCommand"
- -command ("TranslateToolWithSnapMarkingMenu")
- TranslateToolWithSnapMarkingMenuNameCommand;
-
- nameCommand
- -annotation "TranslateToolWithSnapMarkingMenuPopDownNameCommand"
- -command ("TranslateToolWithSnapMarkingMenuPopDown")
- TranslateToolWithSnapMarkingMenuPopDownNameCommand;
-
- nameCommand
- -annotation "RotateToolWithSnapMarkingMenuNameCommand"
- -command ("RotateToolWithSnapMarkingMenu")
- RotateToolWithSnapMarkingMenuNameCommand;
-
- nameCommand
- -annotation "RotateToolWithSnapMarkingMenuPopDownNameCommand"
- -command ("RotateToolWithSnapMarkingMenuPopDown")
- RotateToolWithSnapMarkingMenuPopDownNameCommand;
-
- nameCommand
- -annotation "ScaleToolWithSnapMarkingMenuNameCommand"
- -command ("ScaleToolWithSnapMarkingMenu")
- ScaleToolWithSnapMarkingMenuNameCommand;
-
- nameCommand
- -annotation "ScaleToolWithSnapMarkingMenuPopDownNameCommand"
- -command ("ScaleToolWithSnapMarkingMenuPopDown")
- ScaleToolWithSnapMarkingMenuPopDownNameCommand;
-
- //
- // Playback Range controls.
- //
- // ----------------------------------------------------------------------
- assignCommand -e -addDivider "Playback Range Controls";
-
- nameCommand
- -annotation "Move forward one frame in time"
- -command ("NextFrame")
- Name_Frame_Forward;
-
- nameCommand
- -annotation "Move backward one frame in time"
- -command ("PreviousFrame")
- Name_Frame_Backward;
-
- nameCommand
- -annotation "Go to Next Key"
- -command ("NextKey")
- NameComGo_to_next_keyframe;
-
- nameCommand
- -annotation "Go to Previous Key"
- -command ("PreviousKey")
- NameComGo_to_previous_keyframe;
-
- nameCommand
- -annotation "Start Play Backwards (Press)"
- -command ("PlaybackBackward")
- NameComPlay_backwards_modifier;
-
- nameCommand
- -annotation "Stop Play Backwards (Release)"
- -command ("AnimatePlaybackStop")
- NameComPlay_backwards_modifier_release;
-
- nameCommand
- -annotation "Start Play Forwards (Press)"
- -command ("PlaybackForward")
- NameComPlay_forwards_modifier;
-
- nameCommand
- -annotation "Stop Play Forwards (Release)"
- -command ("PlaybackStop")
- NameComPlay_forwards_modifier_release;
-
- nameCommand
- -annotation "Toggle Playback On/Off"
- -command ("PlaybackToggle")
- NameComToggle_Playback_OnOff;
-
- // keyframe and tangent marking menus
- nameCommand
- -annotation "Keyframe and Tangent Marking Menu (Press)"
- -command ("KeyframeTangentMarkingMenu")
- KeyframeTangentMarkingMenuNameCommand;
-
- nameCommand
- -annotation "Keyframe and Tangent Marking Menu (Release)"
- -command ("KeyframeTangentMarkingMenuPopDown")
- KeyframeTangentMarkingMenuPopDownNameCommand;
-
- //
- // These are actually a few more Tool commands. Handy for users
- // with tablets that want to "lock" a tool mode.
- //
- // ----------------------------------------------------------------------
- assignCommand -e -addDivider "Tablet Commands";
-
- nameCommand -annotation "Lock Selection Mode Off (Press)"
- -command ("TransformNoSelectOffTool")
- lockSelectionModeOff;
-
- nameCommand -annotation "Lock Selection Mode On (Release)"
- -command ("TransformNoSelectOnTool")
- lockSelectionModeOn;
-
- nameCommand -annotation "Tumble Tool On (Press)"
- -command ("TumbleTool")
- pushTumbleContext_Tool;
-
- nameCommand -annotation "Tumble Tool Off (Release)"
- -command ("ToolLastTool")
- popTumbleContext_Cmd;
-
- nameCommand -annotation "Track Tool On (Press)"
- -command ("TrackTool")
- pushTrackContext_Tool;
-
- nameCommand -annotation "Track Tool Off (Release)"
- -command ("ToolLastTool")
- popTrackContext_Cmd;
-
- nameCommand -annotation "Dolly Tool On (Press)"
- -command ("DollyTool")
- pushDollyContext_Tool;
-
- nameCommand -annotation "Dolly Tool Off (Release)"
- -command ("LastTool")
- popDollyContext_Cmd;
-
- //
- // Miscellaneous.
- //
- // ----------------------------------------------------------------------
- assignCommand -e -addDivider "Miscellaneous";
-
- nameCommand -annotation "Help"
- -command ("Help")
- NameComHelp;
-
- nameCommand -annotation "Save Keyframe for Rotate"
- -command ("SetKeyRotate")
- NameComSave_Keyframe_for_Rotate;
-
- nameCommand -annotation "Save Keyframe for Scale"
- -command ("SetKeyScale")
- NameComSave_Keyframe_for_Scale;
-
- nameCommand -annotation "Save Keyframe for Translate"
- -command ("SetKeyTranslate")
- NameComSave_Keyframe_for_Translate;
-
- nameCommand -annotation "Duplicate Selected with Transforms"
- -command ("DuplicateWithTransform")
- NameComDuplicate_Selected_with_Transforms;
-
- nameCommand -annotation "Undo View Change"
- -command ("UndoViewChange")
- NameComUndo_View_Change;
-
- nameCommand -annotation "Redo View Change"
- -command ("RedoViewChange")
- NameComRedo_View_Change;
-
- nameCommand -annotation "Activate Add Key Mode (Press)"
- -command ("AddKeyToolActivate")
- NameComAdd_Key_Modifier;
-
- nameCommand -annotation "Deactivate Add Key Mode (Release)"
- -command ("AddKeyToolDeactivate")
- NameComAdd_Key_Modifier_release;
-
- nameCommand -annotation "Complete current Tool"
- -command ("CompleteCurrentTool")
- NameComComplete_current_Tool1;
-
- nameCommand -annotation "Abort Current Tool"
- -command ("AbortCurrentTool")
- NameComAbort_Context;
-
-
- if (`about -irix`) {
- nameCommand -annotation "Desktop File Manager"
- -command ("DesktopFileManager")
- NameComDesktop_File_Manager;
- }
-
- // Manipulators.
- //
- nameCommand -annotation "Go to next manipulator handle"
- -command ("NextManipulatorHandle")
- NameComGo_to_next_manipulator_handle;
- nameCommand -annotation "Go to previous manipulator handle"
- -command ("PreviousManipulatorHandle")
- NameComGo_to_previous_manipulator_handle;
- nameCommand -annotation "Increase Manipulator Size"
- -command ("IncreaseManipulatorSize")
- NameComIncrease_Manipulator_Size;
- nameCommand -annotation "Decrease Manipulator Size"
- -command ("DecreaseManipulatorSize")
- NameComDecrease_Manipulator_Size;
-
- // Hotbox.
- //
- nameCommand -annotation "Pop Hotbox"
- -command ("ShowHotbox")
- NameComPop_hotBox;
- nameCommand -annotation "Unpop Hotbox"
- -command ("HideHotbox")
- NameComUnpop_hotBox;
-
- // Pane pop.
- //
- nameCommand -annotation "Pop current pane"
- -command ("PanePop")
- NameComPop_current_pane;
-
- nameCommand -annotation "Close front window"
- -command ("CloseFrontWindow")
- NameComClose_Front_Window;
-
- // Working frame.
- //
- nameCommand -annotation "Goto working frame"
- -command ("GoToWorkingFrame")
- NameComGoto_working_frame;
- nameCommand -annotation "Set current frame as working frame"
- -command ("SetWorkingFrame")
- NameComSet_current_frame_as_working_frame;
-
- nameCommand
- -annotation "Set keyboard focus to command line"
- -command ("SetFocusToCommandLine")
- "NameComSet_keyboard_focus_to_command_line" ;
- nameCommand
- -annotation "Set keyboard focus to numeric input line"
- -command ("SetFocusToNumericInputLine")
- "NameComSet_keyboard_focus_to_numeric_input_line";
-
- // Application UI modes.
- //
- nameCommand -annotation "Show Poly Modeling UI"
- -command ("ShowModelingUI")
- NameComShow_Poly_Modeling_UI;
- nameCommand -annotation "Show NURBs Modeling UI"
- -command ("ShowModelingUI")
- NameComModeling_UI;
- nameCommand -annotation "Show Animation UI"
- -command ("ShowAnimationUI")
- NameComAnimation_UI;
- nameCommand -annotation "Show Dynamics UI"
- -command ("ShowDynamicsUI")
- NameComDynamics_UI;
- nameCommand -annotation "Show Rendering UI"
- -command ("ShowRenderingUI")
- NameComRendering_UI;
- nameCommand -annotation "Show All UI"
- -command ("ShowAllUI")
- NameComShow_All_UI;
-
- nameCommand -annotation "Unparent Selected"
- -command ("Unparent")
- NameComUnparent_Selected;
-
- // Virtual Time Slider.
- //
- nameCommand -annotation "Activate Virtual Timeslider Mode (Press)"
- -command ("TimeDraggerToolActivate")
- NameComVirtual_timeslider_modifier;
-
- nameCommand -annotation "Deactivate Virtual Timeslider Mode (Release)"
- -command ("TimeDraggerToolDeactivate")
- NameComVirtual_timeslider_modifier_release;
-
- // Marking menu for switching menubar mode.
- //
- nameCommand -annotation "Menubar Tab Switcher, with Marking Menu (Press)"
- -command ("UIModeMarkingMenu")
- NameMenubar_Switch;
-
- nameCommand -annotation "Menubar Tab Switcher, with Marking Menu (Release)"
- -command ("UIModeMarkingMenuPopDown")
- NameMenubar_Switch_release;
-
- nameCommand -annotation "Open Attribute Editor, or swap with Channel Box"
- -command ("ShowAttributeEditorOrChannelBox")
- OpenOrSwapAEWindow;
-
- nameCommand -annotation "Toggle Main Menubar Visibility"
- -command ("ToggleMainMenubar")
- NameComToggle_Main_Menubar_Visibility;
-
- nameCommand -annotation "Toggle Panel Menubar Visibility"
- -command ("TogglePanelMenubar")
- NameComToggle_Panel_Menubar_Visibility;
-
- nameCommand -annotation "Hotbox Display Style - Rows Visible"
- -command ("FullHotboxDisplay")
- NameComHotbox_DisplayRows;
-
- // Pick walking.
- //
- nameCommand -annotation "Walk up the current hierarchy"
- -command ("PickWalkUp")
- NameComWalk_up_the_current_hierarchy;
-
- nameCommand -annotation "Walk down the current hierarchy"
- -command ("PickWalkDown")
- NameComWalk_down_the_current_hierarchy;
-
- nameCommand -annotation "Walk left in the current hierarchy"
- -command ("PickWalkLeft")
- NameComWalk_left_in_the_current_hierarchy;
-
- nameCommand -annotation "Walk right in the current hierarchy"
- -command ("PickWalkRight")
- NameComWalk_right_in_the_current_hierarchy;
-
- // Pixel move.
- //
- nameCommand -annotation "Move up one pixel"
- -command ("PixelMoveUp")
- NameComMove_up_one_pixel;
-
- nameCommand -annotation "Move down one pixel"
- -command ("PixelMoveDown")
- NameComMove_down_one_pixel;
-
- nameCommand -annotation "Move left one pixel"
- -command ("PixelMoveLeft")
- NameComMove_left_one_pixel;
-
- nameCommand -annotation "Move right one pixel"
- -command ("PixelMoveRight")
- NameComMove_right_one_pixel;
-
- nameCommand -annotation "Repeat Last Action At Mouse Position"
- -command ("RepeatLastActionAtMousePosition")
- NameComRepeat_Last_Action_At_Mouse_Position;
-
- nameCommand -annotation "Go to Min Frame"
- -command ("GoToMinFrame")
- NameComGo_to_min_frame;
-
- nameCommand -annotation "Cycle handle sticky state"
- -command ("CycleIKHandleStickyState")
- NameComCycle_handle_sticky_state;
-
- nameCommand -annotation "Activate Insert Key Mode (Press)"
- -command ("InsertKeyToolActivate")
- NameComInsert_Key_Modifier;
-
- nameCommand -annotation "Deactivate Insert Key Mode (Release)"
- -command ("InsertKeyToolDeactivate")
- NameComInsert_Key_Modifier_release;
-
- // The following commands change the display smoothness of active (i.e.
- // selected) objects. They are similar in function to the menu items
- // under "Display->NURBS Smoothness->...", however the menu items can be
- // made to operate on all objects, not just selected ones. Also, the
- // menu items have option boxes for setting various parameters, whereas
- // the commands below have fixed parameters.
- //
- // So, in short, do not remove the below commands thinking that their
- // functionality is already available in the
- // "Display->NURBS Smoothness->..." menu. The commands are supposed
- // to be there, in addition to the menu items.
- //
- nameCommand -annotation "Low Quality Display Setting"
- -command ("LowQualityDisplay")
- NameComLow_Quality_Display_Setting;
-
- nameCommand -annotation "Medium Quality Display Setting"
- -command ("MediumQualityDisplay")
- NameComMedium_Quality_Display_Setting;
-
- nameCommand -annotation "High Quality Display Setting"
- -command ("HighQualityDisplay")
- NameComHigh_Quality_Display_Setting;
-
- nameCommand -annotation "Set Display Quality Marking Menu (Press)"
- -command ("QualityDisplayMarkingMenu")
- Name_QualityDisplay_Menu;
-
- nameCommand -annotation "Set Display Quality Marking Menu (Release)"
- -command ("QualityDisplayMarkingMenuPopDown")
- Name_QualityDisplay_Menu_release;
-
- nameCommand -annotation "Select Next Intermediate Object"
- -command ("SelectNextIntermediatObject")
- NameComSelect_Next_Intermediate_Object;
-
- // Convert polygon selection.
- //
- nameCommand -annotation "Convert Selection to Vertices"
- -command ("ConvertSelectionToVertices")
- ConvertSelectionToVerticesNameCommand;
-
- nameCommand -annotation "Convert Selection to Edges"
- -command ("ConvertSelectionToEdges")
- ConvertSelectionToEdgesNameCommand;
-
- nameCommand -annotation "Convert Selection to Faces"
- -command ("ConvertSelectionToFaces")
- ConvertSelectionToFacesNameCommand;
-
- nameCommand -annotation "Convert Selection to UVs"
- -command ("ConvertSelectionToUVs")
- ConvertSelectionToUVsNameCommand;
-
- nameCommand -annotation "Grow Selection Region"
- -command ("GrowPolygonSelectionRegion")
- GrowPolygonSelectionRegionNameCommand;
-
- nameCommand -annotation "Shrink Selection Region"
- -command ("ShrinkPolygonSelectionRegion")
- ShrinkPolygonSelectionRegionNameCommand;
-
- // Cut Copy and Paste
- //
- nameCommand
- -annotation "CutSelectedNameCommand"
- -command ("CutSelected")
- CutSelectedNameCommand;
-
- nameCommand
- -annotation "CopySelectedNameCommand"
- -command ("CopySelected")
- CopySelectedNameCommand;
-
- nameCommand
- -annotation "PasteSelectedNameCommand"
- -command ("PasteSelected")
- PasteSelectedNameCommand;
-
- jasperNamedCommandSetup();
- artisanNamedCommandSetup();
-
- if (`isTrue "SubdivUIExists"`) {
- nameCommand -annotation "Coarser Level"
- -command ("CoarserSubdivLevel")
- NameComSubdiv_Surfaces_Coarser_Refinement;
-
- nameCommand -annotation "Subdiv Create Region"
- -command ("CreateSubdivRegion")
- NameComSubdiv_Create_Region;
- }
-
- if( fluidEditLicenseFound() ) {
- nameCommand -annotation "Decrement Fluid Sub-Volume Location"
- -command "DecrementFluidCenter"
- NameComFluids_DecrementFluidCenter;
- nameCommand -annotation "Increment Fluid Sub-Volume Location"
- -command "IncrementFluidCenter"
- NameComFluids_IncrementFluidCenter;
- }
-
- if (`isTrue "MayaCreatorExists"`) {
- creatorNamedCommandSetup();
- }
-
- assignCommand -e -addDivider "User Defined";
-
- // don't add anything after this point
-